<?php
// SITE ROOT contains the full path to the heavy sound folder
define('SITE_ROOT', dirname(dirname(__FILE__)));

// Application directories
define('PRESENTATION_DIR', SITE_ROOT . '/presentation/');
define('BUSINESS_DIR', SITE_ROOT . '/business/');
define('UTILITIES_DIR', SITE_ROOT . '/utilities/');

// Settings needed to configure the Smarty templates engine
define('SMARTY_DIR', SITE_ROOT . '/libs/smarty/');
define('TEMPLATE_DIR', PRESENTATION_DIR . 'templates');
define('COMPILE_DIR', PRESENTATION_DIR . 'templates_c');
define('CONFIG_DIR', SITE_ROOT . '/include/configs');

// These should be true while developing the web site
define('IS_WARNING_FATAL', true);
define('DEBUGGING', true);

// The error types to be reported
define('ERROR_TYPES', E_ALL);

// Settings about mailing the error messages to admin
define('SEND_ERROR_MAIL', false);
define('ADMIN_ERROR_MAIL', "ben.vanmassenhove@pandora.be");
define('SENT_MAIL_FROM', 'errors@heavy-sound.be');
ini_set('sentmail_from', SENT_MAIL_FROM);

// By default we don't log errors to a file
define('LOG_ERRORS', false);
define('LOG_ERRORS_FILE', SITE_ROOT . '/errors/errors_log.txt');
// Generic error message to be displayed instead of debug info (when DEBUGGING is false)
define('SITE_GENERIC_ERROR_MESSAGE', '<h1>Heavy Sound Error!</h1>');

// Database connectivity setup
define('DB_PERSISTENCY', 'true');
define('DB_SERVER', 'localhost');
define('DB_USERNAME', 'root');
define('DB_PASSWORD', '');
define('DB_DATABASE', 'heavy-sound');
define('PDO_DSN', 'mysql:host=' . DB_SERVER . ';dbname=' . DB_DATABASE);

// Server HTTP port (can omit if the default 80 is used)
define('HTTP_SERVER_PORT', '80');
/* Name of the virtual directory the site runs in, for example:
'/tshirtshop/' if the site runs at http://www.example.com/tshirtshop/
'/' if the site runs at http://www.example.com/ */
define('VIRTUAL_LOCATION', '/heavy-sound/');

// Configure product lists display options
define('PRODUCTS_PER_PAGE', 25);
// Special displays on shop's first page
define('NUMBER_OF_EXPECTED_RELEASES_ON_FIRST_PAGE', 5);
define('NUMBER_OF_LATEST_RELEASES_ON_FIRST_PAGE', 5);
define('NUMBER_OF_SPECIAL_PRICES_ON_FIRST_PAGE', 5);
define('NUMBER_OF_EXPECTED_RELEASES', 20);
define('NUMBER_OF_LATEST_RELEASES', 20);
define('NUMBER_OF_SPECIAL_PRICES', 20);
?>